/*
 *  Copyright 2004 Blandware (http://www.blandware.com)
 *
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */
package com.blandware.atleap.persistence.core;

import com.blandware.atleap.common.util.PartialCollection;
import com.blandware.atleap.common.util.QueryInfo;
import com.blandware.atleap.model.core.ApplicationResource;

/**
 * <p>DAO for application resource</p>
 * <p><a href="ApplicationResourceDAO.java.html"><i>View Source</i></a></p>
 *
 * @author Sergey Zubtsovskiy <a href="mailto:sergey.zubtsovskiy@blandware.com">&lt;sergey.zubtsovskiy@blandware.com&gt;</a>
 * @version $Revision: 1.3 $ $Date: 2006/08/03 10:07:36 $
 */
public interface ApplicationResourceDAO extends DAO {

	// ~ CRUD Methods ================================================================

	/**
	 * Creates new application resource
	 *
	 * @param applicationResource Value object that represents what application resource must be created
	 */
	public void createApplicationResource(ApplicationResource applicationResource);

	/**
	 * Retrieves application resource with specified identifier
	 *
	 * @param id ID of resource
	 * @return Application resource or null if no application resource with specified ID exists in database
	 */
	public ApplicationResource retrieveApplicationResource(ApplicationResource.ApplicationResourceID id);

	/**
	 * Updates application resource
	 *
	 * @param applicationResource application resource to update
	 */
	public void updateApplicationResource(ApplicationResource applicationResource);

	/**
	 * Deletes application resource
	 *
	 * @param applicationResource application resource to delete
	 */
	public void deleteApplicationResource(ApplicationResource applicationResource);

	// ~ Additional methods ================================================================

	/**
	 * Retrieves filtered/sorted collection of application resources.
	 *
	 * @param queryInfo Object that contains information about how to filter and sort data
	 * @return Collection of application resources
	 */
	public PartialCollection listApplicationResources(QueryInfo queryInfo);

	// ~ Finders ================================================================


}
